package com.chiffoyqc.sheet;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by Administrator on 2018/7/12.
 */
public class AlarmTypeSheet {

    private final Map<String,String> alarmTypeMap = new HashMap<>();

    private static class LazyHolder {
        private static final AlarmTypeSheet INSTANCE = new AlarmTypeSheet();
    }
    private AlarmTypeSheet (){
        alarmTypeMap.put("1001","通讯异常");
        alarmTypeMap.put("1002","燃气泄露。");
        alarmTypeMap.put("1003","干簧管坏。");
        alarmTypeMap.put("1004","存储器坏");
        alarmTypeMap.put("1005","强磁干扰。");
        alarmTypeMap.put("1006","死表故障");
        alarmTypeMap.put("1007","阀门漏气");
        alarmTypeMap.put("1009","电池故障");
        alarmTypeMap.put("1010","过流报警");
        alarmTypeMap.put("2001","强行关阀。");
        alarmTypeMap.put("2002","取消强关");
        alarmTypeMap.put("3001","欠费提醒");
        alarmTypeMap.put("3002","充值提醒");
        alarmTypeMap.put("3003","充值提醒");
        alarmTypeMap.put("4001","低电量报警");


    }
    public static final AlarmTypeSheet getInstance() {
        return AlarmTypeSheet.LazyHolder.INSTANCE;
    }

    public Map<String, String> getAlarmTypeMap() {
        return alarmTypeMap;
    }

    public String getAlarmTypeMessage(String code){
        return this.alarmTypeMap.get(code);
    }
}
